﻿using BarrageGameAssistant.Core.Model;
using Flurl.Http;

namespace BarrageGameAssistant.Core.Utils
{
    public class LicenceUtils
    {
        public static async Task<ApiResult> GetLicence(string mac, string key)
        {
            string url = "http://82.157.254.209:8888/autogamebarrage/register";
            var resq = url.PostJsonAsync(new { mac = mac, key = key });
            return await resq.ReceiveJson<ApiResult>();
        }
    }
}
